﻿<?xml version="1.0" encoding="utf-8" ?>
<Rules FriendlyName="Sem CodeAnalysis Rules">
  <Rule TypeName="ToStringMustNotBeCalledForStringObjects" Category="BestPractice.Performance" CheckId="SEM2001">
    <Name>ToStringMustNotBeCalledForStringObjects</Name>
    <Description>Calling the ToString-Method for a string does make no sense. It only generates memory stress by allocating a new buffer for the string.</Description>
    <Url></Url>
    <Resolution>Remove the call to "ToString()".</Resolution>
    <MessageLevel Certainty="95">Warning</MessageLevel>
    <FixCategories>NonBreaking</FixCategories>
    <Email />
    <Owner />
  </Rule>
  <Rule TypeName="ReturnValuesOfStringMethodsMustBeInterpreted" Category="BestPractice.Performance" CheckId="SEM2002">
    <Name>ReturnValuesOfStringMethodsMustBeInterpreted</Name>
    <Description>The return value of any String-Method must be processed by code.</Description>
    <Url></Url>
    <Resolution>Remove the call to the method, because it only produces a return value that is discarded.</Resolution>
    <MessageLevel Certainty="95">Warning</MessageLevel>
    <FixCategories>NonBreaking</FixCategories>
    <Email />
    <Owner />
  </Rule>
</Rules>